package example.questionText.matcher;

import com.coderside.core.base.Matcher;
import com.coderside.core.util.ParseUtil;

/**
*auto create by Build Tool
**/
public class QuesiotnMatcher implements Matcher {
	public String fetch(String content) {
		String regexChoice = "[a-z][\\.|、|．]";
		if (ParseUtil.matcherReg(regexChoice, content)) {
			String[] rse = ParseUtil.splitString(regexChoice, content);
			String q = content.substring(0, content.indexOf(rse[0]));
			return q;
		}
		return content;
	}

	public boolean match(String content) {
		String regexStatment = "^(\\d{1,3})[、|\\.}]";
		return ParseUtil.matcherReg(regexStatment, content);
	}

	public char getType() {
		return example.questionText.QuestionBeanHelper.QUESIOTN;
	}
}
